package com.heima.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.RegisterDto;
import com.heima.model.user.dtos.UserDto;
import com.heima.model.user.pojos.ApUser;
import com.heima.model.user.dtos.LoginDto;

import javax.servlet.http.HttpSession;

public interface ApUserService extends IService<ApUser> {

    /**
     * app端登录
     *
     * @param dto
     * @return
     */
    ResponseResult login(LoginDto dto);

    /**
     * 发送消息
     * @param registerDto
     * @param session
     * @return
     */
    ResponseResult sendMsg(RegisterDto registerDto, HttpSession session);

    /**
     * 注册
     * @param registerDto
     * @param session
     * @return
     */
    ResponseResult register(RegisterDto registerDto, HttpSession session);

    /**
     * 保存用户信息
     * @param userDto
     * @param session
     * @return
     */
    ResponseResult saveUser(UserDto userDto, HttpSession session);
}